/**
 * Created by oneminute on 7/9/14.
 */

Array.prototype.pushArray = function(_array) {
    var self = this;
    if (Array.isArray(_array)) {
        _array.forEach(function(_item) {
            self.push(_item);
        });
    }
};

exports = module.exports = function(_path) {
    return {
        User: require("../service/user"),
        Commodity: require("../service/commodity"),
        Demand: require("../service/demand"),
        Gift: require("../service/gift"),
        Account: require("../service/account"),
        Email: require("../service/email"),
        Issue: require("../service/issue"),
        ChatServer: require("../chat/server"),
        Message: require("../chat/message"),
        MessageCode: require("../service/messagecode"),
        UserRecord: require("../service/userrecord"),
        ArangoDB: require("../storage/arangodb"),
        Utils: require("../utils/utils"),
        Logger: require("../utils/logger"),
        ImageManager: require("../utils/imagemanager"),
        Config: require("../../config/config"),
        Persistent: require("../service/persistent")
    }
};